Skip to content

Conversation

pschatzmann
Copy link
Contributor

@pschatzmann pschatzmann commented Oct 5, 2025

For I2C we can pass a TwoWire object to the beginI2C() method.
However for SPI we can't pass the SPIClass and SPI is hard coded!

There are quite some processors that have multiple SPI ports and since the SPIClass is part of the Core Arduino API, I don't see any reason for this restriction.

Therefore I extended the method to be

    bool beginSPI(uint8_t csPin, SPIClass &spiPort=SPI); //Communicate using SPI

@edspark
Copy link
Contributor

edspark commented Oct 6, 2025

Thank you, looks great!

@edspark edspark merged commit ffe93fa into sparkfun:master Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants